<?php
class CaptchaComponent extends Object
{
    function startup(&$controller)
    {
        $this->controller = $controller;
    }
	
    function render()
    {
		Loader::import('app.vendors.kcaptcha.kcaptcha');
        $kcaptcha = new KCAPTCHA();
        $this->controller->C_session->write('captcha', md5(strtolower($kcaptcha->getKeyString())));
    }
}
?>